<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 会员ID
 * @property string $before 变更前余额
 * @property string $money 变更余额
 * @property string $after 变更后余额
 * @property string $remark 备注
 * @property int $business_type 业务类型
 * @property int $order_id 订单ID
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChUserMoneyLog extends MineModel
{
    public bool $incrementing = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_user_money_log';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'before', 'money', 'after', 'remark', 'business_type', 'order_id', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'before' => 'decimal:2', 'money' => 'decimal:2', 'after' => 'decimal:2', 'business_type' => 'integer', 'order_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
